﻿using Model;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IService.Blog
{
    public interface IHomeService
    {
        /// <summary>
        /// 获取计算题验证码
        /// </summary>
        /// <returns></returns>
        public Task<MessageModel<NumCode>> GetNumCode();

        /// <summary>
        /// 获取图片验证码
        /// </summary>
        /// <returns></returns>
        public Task<MessageModel<VerifyCode>> GetVerificationCode(string id);

        /// <summary>
        /// 判断验证码是否正确
        /// </summary>
        /// <returns></returns>
        public Task<MessageModel<bool>> Validate(string id, string code);

        /// <summary>
        /// 博文统计图
        /// </summary>
        /// <returns></returns>
        public Task<MessageModel<string>> GetStatistics();

        /// <summary>
        /// 查询数据库表名及数据量
        /// </summary>
        /// <returns></returns>
        public Task<MessageModel<string>> GetAllBase();


    }
}
